package cn.magicduck.demo.cuisine.impl;

import cn.magicduck.demo.OrderAdapter;
import cn.magicduck.demo.service.OrderService;

/**
 * @author 神奇的鸭鸭
 * @description
 * @date 2020/8/1813:25
 */
public class InsideOrderService implements OrderAdapter {

    private OrderService orderService = new OrderService();

    @Override
    public boolean isFirst(String uId) {
        return orderService.queryUserOrderCount(uId) <= 1;
    }

}